package voidlib;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author nevidimov
 */
public class VoidHelper {
    
    protected static VoidHelper _instance;
    
    public static VoidHelper getInstance() {
        if (_instance == null) {
            _instance = new VoidHelper();
        }
        return _instance;
    }
    
    public String date(long timestamp)
    {
        Date d = new Date();
        d.setTime(timestamp);
        SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss dd.MM.yyyy");
        return df.format(d);
    }
    
}
